<template>
  <el-form-item label="账号" prop="name">
    <el-input :value="value" @input="inputChange"></el-input>
  </el-form-item>
</template>

<script lang="ts">
  import { Vue, Component, Model } from 'vue-property-decorator'

  @Component({
    name: 'ComAccountInput',
  })
  export default class CodeInput extends Vue {

    @Model('change', { type: String }) value!: string

    inputChange(text: string) {
      this.$emit('change', text)
    }
  }
</script>

<style scoped>

</style>
